using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ConvertWorldToLocal : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        print("转换后的Vector3.forward" + this.transform.InverseTransformPoint(Vector3.forward));
        print("转换后的方向(不受缩放影响): " + this.transform.InverseTransformDirection(Vector3.forward));
        print("转换后的方向(受缩放影响): " + this.transform.InverseTransformVector(Vector3.forward));
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
